<template>
	<view class="pwd-retrieve-container">
		<view class="background-white">
			<view>
				<view class="content">最新润滑标准：<text style="color: #5d95ae;" @click="standardDetail">{{standardNumber}}项</text></view>
			</view>
			<view>
				<view class="content">润滑记录：<text style="color: #5d95ae;" @click="recordDetail">{{recordNumber}}项</text></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			deviceId: {
				type: Number,
				default: 0,
			},
			recordNumber: {
				type: Number,
				default: 0,
			},
			standardNumber: {
				type: Number,
				default: 0,
			},
		},
		methods: {
			standardDetail() {
				uni.navigateTo({
					url: `/pages/work/device-manage/components/lubricationStandard?id=${this.deviceId}`
				})
			},
			recordDetail() {
				uni.navigateTo({
					url: `/pages/work/device-manage/components/lubricationRecord?id=${this.deviceId}`
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.pwd-retrieve-container {
		.background-white {
			background-color: #fff;
			padding: 20rpx 30rpx 1rpx 30rpx;

			view {
				padding: 14rpx 0;

				text {
					color: #666666;
					display: inline-block;
					width: 65%;
					vertical-align: top;
				}
			}

			.content {
				display: flex;
			}

			.photo {
				display: flex;
				justify-content: space-between;

				image {
					width: 214rpx;
					height: 214rpx;
				}
			}
		}
	}

	.hidden-title {
		background: #f5f5f5;
		padding: 20rpx;
		color: #999;
	}

	.bor-top {
		border-top: 20rpx solid #f5f5f5;
	}

	.content {
		display: flex;
		align-items: center;
	}
</style>